Instance Deployment Method, Instance Management Node, Computing Node, and Computing Device

ABSTRACT

In a method, an instance management node receives a request for creating a service instance; the instance management node obtains a cache configuration corresponding to the service instance; and the instance management node creates the service instance on a computing node, and creates a cache instance on the computing node based on the cache configuration. In this way, the service instance may provide a service by using the matched cache instance.

CROSS-REFERENCE TO RELATED APPLICATIONS

This is a continuation of Int'l Patent App. No. PCT/CN2020/116330 filedon Sep. 19, 2020, which claims priority to Chinese Patent App. No.201911418980.6 filed on Dec. 31, 2019, both of which are incorporated byreference.

FIELD

This disclosure relates to the database field, and in particular, to aninstance deployment method, an instance management node, a computingnode, a computing device, a computer-readable storage medium, and acomputer program product.

BACKGROUND

As shown in FIG. 1, a cache instance 11 is manually created on acomputing node 11 in advance. Subsequently, a tenant may specify tocreate a service container 12 on the computing node 11 by using acontainer management node.

SUMMARY

In view of this, this disclosure provides an instance deployment method,an instance management node, a computing node, a computing device, acomputer-readable storage medium, and a computer program product, toautomatically deploy a cache instance and a service instance throughmatching.

According to a first aspect, an instance deployment method is provided.In the instance deployment method, an instance management node receivesa request for creating a service instance. The instance management nodeobtains a cache configuration corresponding to the service instance. Forexample, the cache configuration corresponding to the service instancemay be a cache configuration that matches the service instance. Theinstance management node creates the service instance on a computingnode, and creates a cache instance on the computing node based on thecache configuration. In this way, the service instance may provide aservice by using the matched cache instance. This improves efficiency ofproviding a service by the service instance, and improves serviceperformance.

In a possible design of the first aspect, in the method, the cacheconfiguration includes at least one of the following configurations: acache size; a cache medium; a cache write policy; and a cache algorithm.

In a possible design of the first aspect, in the method, the cacheconfiguration is carried in the request for creating the serviceinstance. For example, a tenant or a user of a tenant may specify, byusing the request, the cache configuration that matches the serviceinstance.

In this way, the instance management node obtains the cacheconfiguration from the request, and may create, based on the cacheconfiguration, the cache instance that is manually customized for theservice instance.

In a possible design of the first aspect, in the method, the instancemanagement node obtains the stored cache configuration based on theservice instance. In this way, when creating the service instance, theinstance management node may automatically obtain the cacheconfiguration that matches the service instance, to create the cacheinstance that matches the service instance. This improves efficiency ofproviding a service by the service instance, and improves serviceperformance.

In a possible design of the first aspect, in the method, the instancemanagement node selects one computing node that meets the serviceinstance and the cache instance from a plurality of computing nodes.

In this way, the instance management node selects a computing node thathas sufficient resources and whose configuration meets the cacheconfiguration from the plurality of computing nodes. This can avoid acreation failure caused by directly creating the service instance andthe cache instance on a computing node that has insufficient resourcesor whose configuration does not meet the cache configuration.

In a possible design of the first aspect, in the method, the instancemanagement node receives a request for creating another serviceinstance. The instance management node obtains a cache configurationcorresponding to the another service instance. For example, the cacheconfiguration corresponding to the another service instance may be acache configuration that matches the another service instance. Theinstance management node creates the another service instance on thecomputing node, and creates a cache instance on the computing node basedon the cache configuration corresponding to the another serviceinstance. In this way, the another service instance may provide aservice by using the matched cache instance. Therefore, two types ofcache instances having different cache configurations may be provided ona same computing node, and different services are provided by runningdifferent service instances based on the cache instances havingdifferent cache configurations. This increases computing node resourceutilization, and also provides a manner of deploying heterogeneousservice instances.

In a possible design of the first aspect, in the method, cache instanceshaving different cache configurations are dedicated to different serviceinstances, that is, a cache instance is customized for a serviceinstance.

In this way, the service instance may provide a service by using thecustomized cache instance.

In a possible design of the first aspect, in the method, the computingnode receives a request sent by the instance management node. Therequest carries the cache configuration.

The computing node creates the service instance specified in therequest, and creates, based on the cache configuration, the cacheinstance specified in the request. The cache instance is used by theservice instance.

According to a second aspect, an instance management node includes oneor more function modules configured to implement the steps implementedby the instance management node in the method according to any one ofthe first aspect and the possible designs of the first aspect.

A computing node includes one or more function modules configured toimplement the steps implemented by the computing node in the methodaccording to any one of the first aspect and the possible designs of thefirst aspect.

According to a third aspect, a computing device includes a processor anda memory. The memory stores computer instructions. The processorexecutes the computer instructions stored in the memory, so that thecomputing device performs the steps implemented by the instancemanagement node in the method according to any one of the first aspectand the possible designs of the first aspect, or the computing deviceimplements the instance management node according to the second aspect.Alternatively, the processor executes the computer instructions storedin the memory, so that the computing device performs the stepsimplemented by the computing node in the method according to any one ofthe first aspect and the possible designs of the first aspect, or thecomputing device implements the computing node according to the secondaspect.

According to a fourth aspect, a computer-readable storage medium storescomputer instructions. When a processor in a computing device executesthe computer instructions, the computing device performs the stepsimplemented by the instance management node in the method according toany one of the first aspect and the possible designs of the firstaspect, or the computing device implements the instance management nodeaccording to the second aspect. Alternatively, when a processor in acomputing device executes the computer instructions, the computingdevice performs the steps implemented by the computing node in themethod according to any one of the first aspect and the possible designsof the first aspect, or the computing device implements the computingnode according to the second aspect.

According to a fifth aspect, a computer program product includescomputer instructions, and the computer instructions are stored in acomputer-readable storage medium. A processor in a computing device mayread the computer instructions from the computer-readable storagemedium. The processor executes the computer instructions, so that thecomputing device performs the steps implemented by the instancemanagement node in the method according to any one of the first aspectand the possible designs of the first aspect, or the computing deviceimplements the instance management node according to the second aspect.Alternatively, the processor executes the computer instructions, so thatthe computing device performs the steps implemented by the computingnode in the method according to any one of the first aspect and thepossible designs of the first aspect, or the computing device implementsthe computing node according to the second aspect.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of cache instance deployment;

FIG. 2 is a schematic diagram of a scenario to which this disclosure isapplicable;

FIG. 3 is a schematic diagram of a scenario to which this disclosure isapplicable;

FIG. 4 is a schematic flowchart of an instance deployment method;

FIG. 5 is a schematic diagram of a logical structure of an instancemanagement node;

FIG. 6 is a schematic diagram of a logical structure of a computingnode; and

FIG. 7 is a schematic diagram of a structure of a computing device.

DETAILED DESCRIPTION

The following describes technical solutions with reference to theaccompanying drawings.

A cache instance is created based on a cache configuration, so that thecache configuration can be adjusted to customize the cache instance fora service instance.

The cache configuration includes at least one of the followingconfigurations: a cache size; a cache medium; a cache write policy; anda cache algorithm.

For example, the cache size is used to specify a size of cache spacethat can be provided by the cache instance for the service instance; orthe cache size is used to specify a size of cache space of the cacheinstance.

For example, the cache medium may be a solid-state drive (SSD), a staticrandom-access memory (SRAM), a flash, or another storage medium; or thecache medium may be a storage area network (SAN), a network attachedstorage (NAS), or another storage manner.

For example, the cache write policy may be write through (WT), or may bewrite back (WB), or may be another write manner for writing data to acache.

For example, the cache algorithm may be a least frequently used (LFU)eviction algorithm, a least recently used (LRU) eviction algorithm, anadaptive replacement cache (ARC) algorithm, or another cache evictionalgorithm; or the cache algorithm may be a no replacement cache (NO REP)policy.

Therefore, if two cache configurations have different cache sizes, thetwo cache configurations are different; if two cache configurations havedifferent cache media, the two cache configurations are different; iftwo cache configurations have different cache write policies, the twocache configurations are different; if two cache configurations havedifferent cache algorithms, the two cache configurations are different.

FIG. 2 is a diagram of an architecture of instance deployment.

As shown in FIG. 2, an instance management node 20 may manage serviceinstances and cache instances on a plurality of computing nodes (forexample, a computing node 21 and a computing node 22).

For example, the instance management node 20 may deploy, on thecomputing node 21, a service instance 211 and a cache instance 212 usedby the service instance 211, where a cache configuration of the cacheinstance 212 is set based on a service run by the service instance 211;and the instance management node 20 may deploy, on the computing node21, a service instance 213 and a cache instance 214 used by the serviceinstance 213, where a cache configuration of the cache instance 214 isset based on a service run by the service instance 213. If the serviceinstance 211 and the service instance 213 run different services, thecache instance 212 and the cache instance 214 may have different cacheconfigurations. In this way, cache instances having different cacheconfigurations may be provided to cooperate with service instancesrunning different services. This improves efficiency of providing aservice or improves service performance.

For example, if a service has a priority, a service instance running ahigh-priority service may be deployed on a high-performance computingnode. For example, performance of the computing node 21 is higher thanperformance of the computing node 22, both the service instance 211 andthe service instance 213 provide high-priority services, and the serviceinstance 211 and the service instance 213 are deployed on the computingnode 21; both a service instance 221 and a service instance 223 providelow-priority services, and the service instance 221 and the serviceinstance 223 are deployed on the computing node 22.

A cache instance is used to cache data stored in a backend storage; anda service instance uses the data cached by the cache instance, that is,uses the data stored in the backend storage. For example, as shown inFIG. 2, data required by the service instance 211 is stored in a backendstorage 23, the cache instance 212 obtains the data required by theservice instance 211 from the backend storage 23 and caches the data,and the service instance 211 uses the data cached by the cache instance212. This can increase a speed of obtaining data by the service instance211.

Optionally, as shown in FIG. 2, the backend storage 23, a backendstorage 24, a backend storage 25, and a backend storage 26 may bedifferent or may be the same. At least two of the backend storage 23,the backend storage 24, the backend storage 25, and the backend storage26 may be the same.

Optionally, as shown in FIG. 2, the service instance 211 and the serviceinstance 213 are different service instances running a same service.Therefore, the cache instance 212 and the cache instance 214 may have asame cache configuration.

Optionally, the service instance 211 and the service instance 213 aredifferent service instances running a same service. Therefore, the cacheinstance 212 and the cache instance 214 may be the same cache instance212, as shown in FIG. 3.

The following describes an instance deployment method with reference toFIG. 2, FIG. 3, and FIG. 4. In the method, when a service instancerunning a specific service is deployed, a matched cache instance isautomatically deployed for the service instance. A cache configurationof the cache instance is customized for the service or the serviceinstance. This improves efficiency of providing a service by the serviceinstance, and improves service performance.

Step S41: The instance management node 20 receives a request forcreating the service instance 211.

The service instance 211 is a service instance running a specificservice.

A scenario of triggering the request of the service instance 211 is notlimited. For example, when a tenant needs to deploy the service, thetenant or a user of the tenant sends the request for creating theservice instance 211 to the instance management node 20.

Optionally, the request carries a cache configuration of a cacheinstance used by the service instance 211.

Optionally, the request does not carry a cache configuration of a cacheinstance used by the service instance 211.

Step S42: The instance management node 20 obtains the cacheconfiguration corresponding to the service instance 211.

The service instance 211 uses the matched cache instance to improveefficiency of providing a service or improve service performance.Specifically, the service or the service instance 211 has a customizedcache configuration, and a cache instance created by using the cacheconfiguration is used to provide a cache service for the serviceinstance 211.

Optionally, if the request received in step S41 carries the cacheconfiguration, the instance management node 20 obtains the cacheconfiguration from the request, and may create, based on the cacheconfiguration, the cache instance customized for the service instance211.

Optionally, if the cache configuration of the cache instance thatmatches the service instance 211 is pre-stored, the instance managementnode 20 obtains the stored cache configuration, and may create, based onthe cache configuration, the cache instance customized for the serviceinstance 211.

Step S43: The instance management node 20 creates the service instance211 on the computing node 21, and creates the cache instance 212 on thecomputing node 21 based on the cache configuration obtained in step S42.

The created cache instance 212 is used by the service instance 211.

Optionally, the instance management node 20 creates the service instance211 and the cache instance 212 according to an affinity principle. Thiscan ensure that the service instance 211 and the cache instance 212 arecreated on a same computing node 21.

Optionally, the backend storage 23 stores data for use by the serviceinstance 211, and the cache instance 212 may be created based on thebackend storage 23. In this way, the data in the backend storage 23 maybe read into the cache instance 212, and subsequently the serviceinstance 211 directly uses the data provided by the cache instance 212,that is, the service instance 211 uses the data in the backend storage23 by using the cache instance 212.

For example, a data volume is created based on the backend storage 23,and a path of the data volume is stored in the cache instance 212. Inthis way, the cache instance 212 may obtain data of the backend storage23 by using the data volume.

Optionally, the instance management node 20 selects one computing nodethat meets the service instance 211 and the cache instance 212 from aplurality of computing nodes, to create the service instance 211 and thecache instance 212.

For example, the computing node 21 has an SSD, and the computing node 22does not have an SSD. The instance management node 20 obtains the cacheconfiguration corresponding to the service instance 211 in step S42, anda cache medium specified in the cache configuration is an SSD.Therefore, the instance management node 20 selects the computing node 21to create the service instance 211 and the cache instance 212, creates,based on the cache configuration obtained in step S42, the cacheinstance 212 by using the SSD of the computing node 21, and creates theservice instance 211 on the computing node 21.

Optionally, the instance management node 20 generates a request in stepS43. The request carries the cache configuration corresponding to theservice instance 211, and the request is used to indicate the computingnode 21 to create the service instance 211 and the cache instance.

Correspondingly, the computing node 21 receives the request sent by theinstance management node 20. The computing node 21 creates the serviceinstance 211 specified in the request, and creates, based on the cacheconfiguration corresponding to the service instance 211, the cacheinstance 212 specified in the request. In this way, the cache instance212 may be used by the service instance 211. The service instance 211may provide a service by using the cache instance 212. This improvesefficiency of providing a service by the service instance, and improvesservice performance.

In the instance deployment method provided, a new specific scenario isprovided. To be specific, cache instances having different cacheconfigurations are created on a same computing node to be used byservice instances running different services. Correspondingly, themethod further includes step S44, step S45, and step S46.

Step S44: The instance management node 20 receives a request forcreating the service instance 213.

The service instance 213 and the service instance 211 are serviceinstances that provide different services. The service instance 213 andthe service instance 211 need to use cache instances having differentcache configurations to provide different services.

An implementation of step S44 is similar to an implementation of stepS41. Details are not described herein again.

Step S45: The instance management node 20 obtains a cache configurationcorresponding to the service instance 213.

The cache configuration corresponding to the service instance 213 andthe cache configuration corresponding to the service instance 211 aredifferent. For example, a cache size (for example, 50 megabytes (MB))required by the cache configuration corresponding to the serviceinstance 213 is different from a cache size (for example, 60 MB)required by the cache configuration corresponding to the serviceinstance 211. For example, a cache algorithm (LRU) required by the cacheconfiguration corresponding to the service instance 213 is differentfrom a cache algorithm (NO REP) required by the cache configurationcorresponding to the service instance 211. For example, a cache writepolicy (WT) required by the cache configuration corresponding to theservice instance 213 is different from a cache write policy (WB)required by the cache configuration corresponding to the serviceinstance 211.

An implementation of step S45 is similar to an implementation of stepS42. Details are not described herein again.

Step S46: The instance management node 20 creates the service instance213 on the computing node 21, and creates the cache instance 214 on thecomputing node 21 based on the cache configuration obtained in step S45.

The cache instance 214 is used by the service instance 213.

An implementation of step S46 is similar to an implementation of stepS43. Details are not described herein again.

Optionally, when the computing node 21 meets both a resource requirementof the service instance 213 and a resource requirement of the cacheinstance 214, the instance management node 20 creates the serviceinstance 213 and the cache instance 214 on the computing node 21.Optionally, the instance management node 20 generates a request in stepS46. The request carries the cache configuration corresponding to theservice instance 213, and the request is used to indicate the computingnode 21 to create the service instance 213 and the cache instance.

Correspondingly, the computing node 21 receives the request sent by theinstance management node 20. The computing node 21 creates the serviceinstance 213 specified in the request, and creates, based on the cacheconfiguration corresponding to the service instance 213, the cacheinstance 214 specified in the request. In this way, the cache instance214 may be used by the service instance 213. The service instance 213may provide a service by using the cache instance 214. This improvesefficiency of providing a service by the service instance, and improvesservice performance.

This disclosure further provides an instance management node 20.Specifically, a function of the instance management node 20 may beimplemented on a computing device (for example, a server or anotherdevice having a computing capability), so that the computing deviceserves as the instance management node 20.

The instance management node 20 includes function units configured toimplement the instance deployment method. A manner of dividing theinstance management node 20 into function units is not limited. Thefollowing provides an example of function unit division, as shown inFIG. 5.

The instance management node 20 for instance deployment in FIG. 5includes: a receiving unit 51 configured to receive a request forcreating a first service instance; an obtaining unit 52 configured toobtain a first cache configuration corresponding to the first serviceinstance; and a creation unit 53 configured to: create the first serviceinstance on a computing node, and create a first cache instance on thecomputing node based on the first cache configuration, where the firstcache instance is used by the first service instance.

Optionally, the receiving unit 51 is configured to receive a request forcreating a second service instance.

The obtaining unit 52 is configured to obtain a second cacheconfiguration corresponding to the second service instance.

The creation unit 53 is configured to: create the second serviceinstance on the computing node, and create a second cache instance onthe computing node based on the second cache configuration, where thesecond cache instance is used by the second service instance.

Optionally, the first cache configuration includes at least one of thefollowing configurations: a cache size; a cache medium; a cache writepolicy; and a cache algorithm.

Optionally, the first cache configuration is carried in the request forcreating the first service instance.

Optionally, the obtaining unit 52 is configured to obtain the storedfirst cache configuration based on the first service instance.

Optionally, the instance management node 20 includes: a selection unit54 configured to select one computing node that meets the first serviceinstance and the first cache instance from a plurality of computingnodes.

Optionally, the first cache instance having the first cacheconfiguration is dedicated to the first service instance.

Optionally, the first service instance may be the service instance 211,the first cache instance may be the service instance 212, the secondservice instance may be the service instance 213, and the second cacheinstance may be the service instance 214.

This disclosure further provides a computing node. For example, thecomputing node is the computing node 21 or the computing node 22.Specifically, a function of the computing node may be implemented on acomputing device (for example, a server or another device having acomputing capability), so that the computing device serves as thecomputing node.

The computing node includes function units configured to implement theinstance deployment method. A manner of dividing the computing node intofunction units is not limited. The following provides an example offunction unit division, as shown in FIG. 6.

The computing node for instance deployment in FIG. 6 includes: areceiving unit 61 configured to receive a request sent by an instancemanagement node, where the request carries a first cache configuration;and a creation unit 62 configured to: create a first service instancespecified in the request, and create, based on the first cacheconfiguration, a first cache instance specified in the request, wherethe first cache instance is used by the first service instance.

Optionally, the first cache configuration includes at least one of thefollowing configurations: a cache size; a cache medium; a cache writepolicy; and a cache algorithm.

Optionally, the first cache instance having the first cacheconfiguration is dedicated to the first service instance.

Optionally, the first service instance may be the service instance 211,the first cache instance may be the service instance 212, the secondservice instance may be the service instance 213, and the second cacheinstance may be the service instance 214.

Optionally, FIG. 7 schematically provides a possible basic architectureof a computing device.

As shown in FIG. 7, the computing device 700 includes a processor 701, amemory 702, a communications interface 703, and a bus 704.

The computing device 700 may include one or more processors 701. FIG. 7shows only one processor 701. Optionally, the processor 701 may be acentral processing unit (CPU). If the computing device 700 has aplurality of processors 701, the plurality of processors 701 may be ofdifferent types or may be of a same type. Optionally, the plurality ofprocessors 701 in the computing device 700 may be further integratedinto a multi-core processor.

The memory 702 stores computer instructions and data. The memory 702 maystore computer instructions and data required for implementing theinstance deployment method provided. For example, the memory 702 storescomputer instructions used to implement the steps implemented by theinstance management node 20 in the instance deployment method. Forexample, the memory 702 stores computer instructions used to implementthe steps implemented by the computing node in the instance deploymentmethod. For another example, the memory 702 stores computer instructionsused to implement the instance management node 20 or the computing node.The memory 702 may be any one or any combination of the followingstorage media: a nonvolatile memory (for example, a read-only memory(ROM), an SSD, a hard disk drive (HDD), or an optical disc), and avolatile memory.

The communications interface 703 may be any one or any combination ofcomponents having a network access function such as a network interface(for example, an Ethernet interface) and a wireless network interfacecard.

The communications interface 703 is configured to perform datacommunication between the computing device 700 and another computingdevice or a terminal.

In FIG. 7, a thick line is used to represent the bus 704. The bus 704may connect the processor 701 to the memory 702 and the communicationsinterface 703. In this way, through the bus 704, the processor 701 mayaccess the memory 702, and may further exchange data with anothercomputing device or a terminal through the communications interface 703.

The computing device 700 executes the computer instructions in thememory 702, so that the computing device 700 implements the instancedeployment method provided, for example, the computing device performsthe steps implemented by the instance management node 20 in the instancedeployment method, or the computing device performs the stepsimplemented by the computing node in the instance deployment method.Alternatively, the computing device 700 executes the computerinstructions in the memory 702, so that the computing device 700implements the instance management node 20 or the computing node.

This disclosure provides a computer-readable storage medium. Thecomputer-readable storage medium stores computer instructions. When theprocessor 701 in the computing device 700 executes the computerinstructions, the computing device 700 performs the steps implemented bythe instance management node 20 in the instance deployment methodprovided, or the computing device 700 implements functions of theinstance management node 20. Alternatively, when the processor 701 inthe computing device 700 executes the computer instructions, thecomputing device 700 performs the steps implemented by the computingnode in the instance deployment method provided, or the computing deviceimplements the computing node provided.

A computer program product includes computer instructions, and thecomputer instructions are stored in a computer-readable storage medium.The processor 701 in the computing device 700 may read the computerinstructions from the computer-readable storage medium, and theprocessor 701 executes the computer instructions, so that the computingdevice 700 performs the steps implemented by the instance managementnode 20 in the instance deployment method, or the computing device 700implements functions implemented by the instance management node 20.Alternatively, the processor 701 in the computing device 700 may readthe computer instructions from the computer-readable storage medium, andthe processor 701 executes the computer instructions, so that thecomputing device 700 performs the steps implemented by the computingnode in the instance deployment method provided, or the computing device700 implements functions implemented by the computing node.

Embodiments are merely intended for describing the technical solutions,but not for limiting the present disclosure. Although the presentdisclosure is described in detail with reference to embodiments, personsof ordinary skill in the art should understand that they may still makemodifications to the technical solutions described in embodiments,without departing from the protection scope of the claims.

1. An instance deployment method implemented by an instance management node comprising: receiving a request for creating a service instance; obtaining a cache configuration corresponding to the service instance; and creating the service instance on a first computing node, wherein the service instance is configured to use a cache instance which has the cache configuration.
 2. The method of claim 1, wherein the cache configuration comprises at least one of a cache size, a cache medium, a cache write policy, or a cache algorithm.
 3. The method of claim 1, further comprising creating the cache instance on the first computing node.
 4. The method of claim 3, further comprising further creating the service instance and the cache instance according to an affinity principle.
 5. The method of claim 6, further comprising creating the cache instance on the second computing node.
 6. The method of claim 1, further comprising selecting, from a plurality of computing nodes, a second computing node that meets the cache configuration.
 7. The method of claim 1, wherein the service instance is a container.
 8. A system comprising: a plurality of computing nodes comprsing a first computing node; and instance management node comprising a first computing node; and an instance management node, configured to: receive a request for creating a service, instance; and obtain a cache configuration corresponding to the service instance; and create the service instance on the first computing node, wherein the service instance is configured to use a cache instance which has the cache configuration.
 9. The system of claim 8, wherein the cache configuration comprises at least one of a cache size, a cache medium, a cache write policy, or a cache algorithm.
 10. The system of claim 8, wherein the instance management node is further configured to create the cache instance on the first computing node.
 11. The system claim 10, wherein the instance management node is further configured to further create the service instance and the cache instance on the first computing node according to an affinity principle.
 12. The system of claim 13, wherein the instance management node is further configured to create the cache instance on the second computing node.
 13. The system of claim 8, wherein the computing nodes further comprise a second computing node that meets the cache configuration, and wherein the instance management node is further configured to select, from the computing nodes, the second computing node.
 14. The system of claim 8, wherein the service instance is a container.
 15. An instance management node comprising: a memory, configured to store instructions; and a processor coupled to the memory and configured to execute the instructions to cause the instance management node to: receive a request for creating a service, instance; obtain a cache configuration corresponding to the service, instance; and create the service instance on a first computing node, wherein the service instance is configured to use a cache instance which has the cache configuration.
 16. The instance management node of claim 15, wherein the cache configuration comprises at least one of a cache size, a cache medium, a cache write policy, or a cache algorithm.
 17. The instance management node of claim 15, wherein the processor is further configured to execute the instruction to cause the instance management node to create the cache instance on the first computing node.
 18. The instance management node of claim 17, wherein the processor is further configured to execute the instructions to cause the instance management node to further create the service instance and the cache instance according to an affinity principle.
 19. The instance management node of claim 20, wherein the processor is further configured to execute the instruction to cause the instance management node to create the cache instance on the second computing node.
 20. The instance management node of claim 15, wherein the processor is further configured to execute the instructions to cause the instance management node to select, from among a plurality of computing nodes, a second computing node that meets the cache configuration. 